﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ArmoryBrowser_Commands="clr-namespace:ArmoryBrowser.Commands"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="ArmoryBrowser.MainPage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait" DataContext="{Binding Source={StaticResource model}}">

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.056*"/>
			<ColumnDefinition Width="0.844*"/>
			<ColumnDefinition Width="0.1*"/>
		</Grid.ColumnDefinitions>
		<Grid.Background>
			<ImageBrush Stretch="Fill" ImageSource="wow_search.jpg"/>
		</Grid.Background>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="0.417*"/>
			<RowDefinition Height="0.286*"/>
			<RowDefinition Height="0.297*"/>
		</Grid.RowDefinitions>
		<Grid Grid.Column="1" Margin="0" Grid.Row="2">
			<Grid.ColumnDefinitions>
				<ColumnDefinition />
				<ColumnDefinition Width="2.5*" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition />
				<RowDefinition />
				<RowDefinition />
			</Grid.RowDefinitions>
			<TextBlock TextWrapping="Wrap" Text="Reino" VerticalAlignment="Center" FontSize="25.333" d:LayoutOverrides="Width" HorizontalAlignment="Right" Foreground="White" FontWeight="Bold"/>
			<TextBox TextWrapping="Wrap" Text="{Binding RealmName, Mode=TwoWay}" Grid.Column="1" d:LayoutOverrides="Height" Background="#BFFFFFFF" Foreground="Black" BorderBrush="#26FFFFFF"/>
			<TextBlock TextWrapping="Wrap" Text="Personaje" FontSize="25.333" Grid.Row="1" HorizontalAlignment="Right" Margin="0" d:LayoutOverrides="Height" VerticalAlignment="Center" Foreground="White" FontWeight="Bold"/>
			<TextBox TextWrapping="Wrap" Text="{Binding CharacterName, Mode=TwoWay}" Grid.Row="1" Grid.Column="1" Margin="0" d:LayoutOverrides="Height" Background="#BFFFFFFF" BorderBrush="#26FFFFFF"/>
		</Grid>
		<Button ArmoryBrowser_Commands:Commands.Command="{Binding LoadCharacterCommand}" Content="Buscar" Grid.Column="1" Margin="0" Grid.Row="3" VerticalAlignment="Top" HorizontalAlignment="Center" BorderBrush="#26000000" Background="#BFFFFFFF" Click="Button_Click" Foreground="Black" />
		
		<!--TitlePanel contains the name of the application and page title-->

		<!--ContentPanel - place additional content here-->
	</Grid>
</phone:PhoneApplicationPage>